Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Scala 2.12.16 #655

Merged
merged 4 commits into from
Jul 11, 2022
Merged

Support Scala 2.12.16 #655

merged 4 commits into from
Jul 11, 2022

Conversation

saeltz
Copy link
Collaborator

@saeltz saeltz commented Jul 4, 2022

It was released last month. I wanted to update a cross-built library but Scapegoat failed. This adds the relevant support.

@@ -56,10 +56,10 @@ class ComparingUnrelatedTypesTest extends InspectionTest {
}
"for char" - {
"compared to char-sized long literal" in {
verifyNoWarnings("""object A { val c = 'a'; val c = l == 97L }""")
verifyNoWarnings("""object A { val c = 'a'; val l = c == 97L }""")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was throwing and error but not failing because it was no scapegoat warning.

@@ -83,10 +83,6 @@ class PartialFunctionInsteadOfMatchTest extends InspectionTest {
future onComplete {
case _ =>
}
future onSuccess {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was throwing an error as well because onSuccess doesn't exist anymore in Scala 2.13.

@saeltz saeltz marked this pull request as ready for review July 4, 2022 14:27
@saeltz saeltz requested a review from mccartney July 4, 2022 14:27
@sksamuel sksamuel merged commit 846dcfb into scapegoat-scala:master Jul 11, 2022
@sksamuel
Copy link
Collaborator

👍🏼

@saeltz saeltz deleted the 2.12.16 branch July 11, 2022 07:05
@saeltz
Copy link
Collaborator Author

saeltz commented Jul 11, 2022

@sksamuel, could you please release a new version?

@mccartney
Copy link
Collaborator

I can do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants